package com.buka.goods.service;

import com.buka.server.pojo.Brand;
import com.github.pagehelper.Page;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface BrandService {

    List<Brand> findAll();

    List<Brand> findById(Long id);

    int  addBrand(Brand brand);

    int updateBrand(Brand brand);

    int deleteTrueBrand(Long id);

    int deleteFalseBrand(Long id);

    public List<Brand> FuzzyQuery(String s);

    public int OpenOrStopBrand(Long id);

   public Page<Brand> findPage(Integer page, Integer size);

    public Page<Brand> findPage(String brandName,Integer page, Integer size);

    Integer addAndFile(String brandName, MultipartFile file);

}
